package com.itheima.service;

import com.itheima.result.Result;

import java.util.Map;

public interface OrderService {
    /**
     *根据传输的预约数据执行业务判断
     * @param map
     * @return
     * @throws Exception
     */
    Result order(Map map) throws Exception;

    /**
     * 根据预约信息ID查询预约信息
     * @param id
     * @return
     * @throws Exception
     */
    Map findById(Integer id) throws Exception;
}
